package handle

import (
	"github.com/gin-gonic/gin"
	"net/http"
	"zk2/api/basic/config"
	__ "zk2/api/basic/proto"
)

func FriendList(c *gin.Context) {
	r, err := config.Client.FriendList(c, &__.FriendListReq{})
	if err != nil {
		c.JSON(http.StatusOK, gin.H{
			"data": 400,
			"code": "朋友列表展示失败",
			"msg":  err.Error(),
		})
		return
	}
	c.JSON(http.StatusOK, gin.H{
		"data": 400,
		"code": "朋友列表展示成功",
		"msg":  r,
	})

}
